package com.code.train.service;

import com.code.train.req.PassengerQueryReq;
import com.code.train.req.PassengerSaveReq;
import com.code.train.resp.PageResp;
import com.code.train.resp.PassengerQueryResp;
import jakarta.validation.Valid;

import java.util.List;

/**
 * PassengerService
 *
 * @param
 * @author 南汉卿
 * @return
 * @date 2025/8/15 11:22
 */
public interface PassengerService {
    void save(PassengerSaveReq req);

    PageResp<PassengerQueryResp> queryList(@Valid PassengerQueryReq req);

    void delete(Long id);

    List<PassengerQueryResp> queryMine();
}
